package com.shopreg.util;

import com.shopreg.entity.ShopDetails;

public class ShopRegUtil {

	public boolean checkShopDetailParams(ShopDetails shopDetails){
		boolean result = true;
		if(shopDetails.getCountry()==null && shopDetails.getCountry().isEmpty()){
			result = false;
		}
		else if(shopDetails.getDistrict()==null || shopDetails.getDistrict().isEmpty()){
			result = false;
		}
		else if(shopDetails.getEntryDate()==null ){
			result = false;
		}
		else if(shopDetails.getPhoneNumbers()==null){
			result = false;
		}
		else if(shopDetails.getPinCode()==null || shopDetails.getPinCode().isEmpty()){
			result = false;
		}
		else if(shopDetails.getShopAddress()==null ){
			result = false;
		}
		else if(shopDetails.getShopLandMark()==null || shopDetails.getShopLandMark().isEmpty()){
			result = false;
		}
		else if(shopDetails.getShopLocation()==null || shopDetails.getShopLocation().isEmpty()){
			result = false;
		}
		else if(shopDetails.getShopName()==null || shopDetails.getShopName().isEmpty()){
			result = false;
		}
		else if(shopDetails.getShopType()==null || shopDetails.getShopType().isEmpty()){
			result = false;
		}
		else if(shopDetails.getState()==null || shopDetails.getState().isEmpty()){
			result = false;
		}
		return result;
	}
}
